package demo2;

public class Test {
    public static void main(String[] args) {
        Student student1 = new Student("zhangsan",10,30);
        Student student2 = new Student("lisi",23,6);
            ScoreCompare scoreCompare = new ScoreCompare();
            int ret = scoreCompare.compare(student1,student2);
            if(ret > 0){
                System.out.println("s1 > s2");
            }else{
                System.out.println("s1 < s2");
            }
            NameCompare nameCompare = new NameCompare();
            ret = nameCompare.compare(student1,student2);
        if(ret > 0){
            System.out.println("s1 > s2");
        }else{
            System.out.println("s1 < s2");
        }
    }
}
